<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/pop.css" media="screen"/>
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery.form.js"></script>
<div class="pop_roster_request">
	<div class="pop_roster_request_tit">
		移动<font style="color:red"><ms:user userid="${usr}" type="gnickname"/></font>到组
	</div>
	<form id="f_roster_group_move" action="<c:url value='/roster/move.do'/>" method="post">
		<input type="hidden" name="usr" value="${usr}">
		<select name="rgid">
			<c:forEach var="rosterGroup" items="${rosterGroups}" varStatus="status">
				<option value="${rosterGroup.groupid}"><c:out value="${rosterGroup.name}"/></option>
			</c:forEach>
		</select>
		<br/>
		<input type="submit" class="btn3" value="移动">
	</form>
</div>
<script>
$("#f_roster_group_move").ajaxForm({
	success: processMoveRosterGroupResult
});
function processMoveRosterGroupResult(result){
	if($(result).find('result').text().toUpperCase().indexOf("TRUE") >= 0){
		$.fn.colorbox.close();
		alert("移动好友成功");
	}else{
		alert("移动好友出错！请重新移动！");
	}
	$("#space_owner_tabs" ).tabs("load", 1);
}
</script>